package io;

import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.InputStreamReader;

/**
 * 块读写
 */
public class BRDemo {
    public static void main(String[] args) throws Exception {
        FileInputStream fis = new FileInputStream("./src/main/java/io/BRDemo.java");
        InputStreamReader isr = new InputStreamReader(fis);
        BufferedReader br = new BufferedReader(isr);
        //读一行
        String str = "";
        while (null != (str = br.readLine())){
            System.out.println(str);
        }
    }
}
